from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By
from selenium.webdriver import ActionChains
driver = webdriver.Chrome()
#隐式等待：
driver.implicitly_wait(10)
driver.get("http://localhost/ranzhi/www/crm/customer-browse.html")
driver.maximize_window()
driver.find_element(By.ID,"account").send_keys("123456")
driver.find_element(By.NAME,"password").send_keys("123456")
driver.find_element(By.ID,"submit").click()
driver.find_element(By.XPATH,'/html/body/div[1]/div[1]/div/ul[1]/li[8]/button').click()
driver.switch_to.frame("iframe-superadmin")
driver.find_element(By.XPATH,'/html/body/div[2]/div/div/div[1]/div/a/h3').click()
